package com.coolweather.news_app.util;

import okhttp3.OkHttpClient;
import okhttp3.Request;

public class HttpUtil {
    public static void sendOkHttpRequest(String address,okhttp3.Callback callback){
        OkHttpClient client = new OkHttpClient();
        Request request = new Request.Builder()
                .url("http://api.tianapi.com/esports/index?key=d4f64db4ff1bbae9134d5a71b9d98c20&num=10")
                .build();
        client.newCall(request).enqueue(callback);
    }
}
